package com.ks.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ks.api.entity.KsConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface KsConfigMapper extends BaseMapper<KsConfig> {
    
    @Select("SELECT config_value,top_price,config_value_qj,min_price FROM ks_config WHERE config_key = #{key}")
    KsConfig getConfigValue(@Param("key") String key);
} 